# Read about factories at https://github.com/thoughtbot/factory_girl

FactoryGirl.define do
  factory :user do
    name "Nguyen Van An"
    password "password"
    email "an.nguyen@library.com"
  end

  factory :admin, parent: :user do
    admin true
  end
end
